<?php
class Back_Model_Tournois extends Jnd_Model_Abstract
{
    protected $id = 0;
    protected $nom = "";
    protected $date = null;
    protected $heure = "";
    protected $lieu = "";
    protected $ouvert = true;

    /**
     *
     * @see Jnd_Model_Abstract::getId()
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     *
     * @see Jnd_Model_Abstract::setId()
     */
    public function setId( $id )
    {
        $this->id = $id;
    }

    public static function chercherParNom( $nom )
    {
        $retour = array();
        $mapper = new Back_Model_Mapper_Groupes();
        $retour = $mapper->chercherParNom($nom);
        return new self($retour['id']);
    }
}
